﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using System.Windows.Media.Imaging;

namespace DGIS.Map.Converts
{
    public class DownloadStatusConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            Int64 type = (Int64)value;
            return new BitmapImage(new Uri(string.Format("{0}Images\\{1}.png", AppDomain.CurrentDomain.BaseDirectory,(type==0)? "pause" : "start")));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
